<ui:composition template="/publico/template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html">
    <ui:define 
        name="content">
        <div align="center">
            <h:link outcome="local/lista-local.xhtml" class="btn-panel">
                <h:graphicImage library="icons" name="location.png" />
                <h2 style="text-align: center; ">Local</h2>
            </h:link>

            <h:link outcome="local/etapa/lista-etapa.xhtml" class="btn-panel">
                <h:graphicImage library="icons" name="checklist.png" />
                <h2 style="text-align: center; ">Etapa</h2>
            </h:link>

            <h:link outcome="nutriente/lista-nutriente.xhtml" class="btn-panel">
                <h:graphicImage library="icons" name="microscope.png" />
                <h2 style="text-align: center; ">Nutrientes</h2>
            </h:link>

            <h:link outcome="aplicacao/lista-aplicacao.xhtml" class="btn-panel">
                <h:graphicImage library="icons" name="horse.png" />
                <h2 style="text-align: center; ">Aplicação</h2>
            </h:link>

            <h:link outcome="cardapio/lista-cardapio.xhtml" class="btn-panel">
                <h:graphicImage library="icons" name="food-dome.png" />
                <h2 style="text-align: center; ">Cardápio</h2>
            </h:link>

            <h:link outcome="cardapio/item/lista-item.xhtml" class="btn-panel">
                <h:graphicImage library="icons" name="package.png" />
                <h2 style="text-align: center; ">Item</h2>
            </h:link>

            <h:link outcome="formatoEmbalagem/lista-formatoembalagem.xhtml" class="btn-panel">
                <h:graphicImage library="icons" name="open-box.png" />
                <h2 style="text-align: center; ">Embalagem</h2>
            </h:link>

            <h:link outcome="metododetrituracao/lista-metododetrituracao.xhtml" class="btn-panel">
                <h:graphicImage library="icons" name="gear.png" width="128" height="128"/>
                <h2 style="text-align: center; ">Método de Trituração</h2>
            </h:link>

            <h:link outcome="equipamento/lista-equipamento.xhtml" class="btn-panel">
                <h:graphicImage library="icons" name="settings.png" />
                <h2 style="text-align: center; ">Equipamento</h2>
            </h:link>

            <h:link rendered="#{usuarioBean.isPapel('ROLE_ADMIN')}"
                    outcome="usuario/lista-usuario.xhtml"
                    class="btn-panel">
                <h:graphicImage library="icons" name="man.png" />
                <h2>Usuário</h2>
            </h:link>
        </div>
    </ui:define>
</ui:composition>
